#!/usr/bin/python

import os

objects = [];                   # store all the object

# the following is the type of object
# class
# variable
# function

class object:
    def __init__(self):
        self.type = "";
        self.old_name = "";
        self.new_name = "";
        self.childrens = [];

# process each file
def process_file(file):
    print file
    f = open(file)
    src = print f.read()
    f.close()

    

def walkfunc(ext, dir, files):

    if dir.find("lua") != -1:     # directories should be not process
        return
    if dir.find("windsoul") != -1:
        return
    if dir.find("include") != -1:
        return
    for i in files:            
        # only the source file should be processed
        if i.find("~") != -1:   # the emacs temp files should be filt
            continue
        elif i.find(".svn-base") != -1: # the svn base file should also be filt
            continue
        elif i.find(".h") != -1 or i.find(".cpp") != -1:
            process_file(os.path.join(dir,i))

os.path.walk(".",walkfunc,".h")

